<?php

namespace App\Repository\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

/**
 * Class AttributeValues.
 *
 * @package namespace App\Repository\Models;
 */
class AttributeValues extends Model implements Transformable
{
    use TransformableTrait;
    use SoftDeletes;
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['attribute_id','value','sort','remark','is_common','shop_id','remark'];

    public function attribute()
    {
        return $this->hasOne(Attributes::class, 'id', 'attribute_id');
    }
}
